package com.ctsi.ssdc.constants;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

@Component
public class SortedMapConstant {

    private static final Map<String, Integer> sortedMap = new HashMap<>();

    @PostConstruct
    public void initSortMap() {
        sortedMap.put("昆山开发区",0);
        sortedMap.put("昆山高新区",1);
        sortedMap.put("花桥经济开发区",2);
        sortedMap.put("旅游度假区",3);
        sortedMap.put("张浦镇",4);
        sortedMap.put("周市镇",5);
        sortedMap.put("陆家镇",6);
        sortedMap.put("巴城镇",7);
        sortedMap.put("千灯镇",8);
    }

    public static Integer get(String industry) {
        return sortedMap.get(industry);
    }

}
